<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选做题4</title>
</head>
<body>
    <div id="信息"></div>
    <script>
        const xhr = new XMLHttpRequest();
        xhr.open('PUT', 'http://124.220.159.29:8089/user/updateUserById?'+'id');
        xhr.send();
        const result = document.getElementById('信息');
        xhr.onreadystatechange = function() {
         if (xhr.readyState === 4) {
                console.log("修改张武成功!");
        }
        };
    </script>

</body>
</html>